package com.guanyong.services;

import com.guanyong.dao.IAliPayLogDaoMapper;
import com.guanyong.model.AliPayLogModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by mxk on 2017/6/2.
 */
@Service
public class AliPayLogService {

    @Autowired
    IAliPayLogDaoMapper aliPayLogDaoMapper;



    public Integer AddAliPayLog(AliPayLogModel aliPayLogModel){
        return aliPayLogDaoMapper.insert(aliPayLogModel);
    }

    public Integer ErrorPay(String payId,String payErrorMsg){
        return aliPayLogDaoMapper.ErrorPay(payId,payErrorMsg);
    }

    public Integer GetByNotifyId(String notifyId){
        return aliPayLogDaoMapper.GetByNotifyId(notifyId);
    }

}
